'use strict';

module.exports = app => {
  const { STRING, INTEGER, DATE } = app.Sequelize;

  const UserClass = app.model.define('thesis_user_class', {
    user_word_id: {
      type: INTEGER,
      primaryKey: true,
      autoIncrement: true,
    },
    user_id: INTEGER(11),
    class_id: INTEGER(11),
    created_at: DATE,
    updated_at: DATE,
  }, {
    freezeTableName: true,
});

  return UserClass;
};
